<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <?php
            echo $this->headTitle('Sistema de marcaciones');

            echo $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=utf-8');

            echo $this->headLink()->appendStylesheet('/ext-3.4.0/resources/css/ext-all.css')
                                  ->appendStylesheet('/css/layout.css');

            echo $this->headScript()->appendFile('/ext-3.4.0/adapter/ext/ext-base.js')
                                    ->appendFile('/ext-3.4.0/ext-all.js')
                                    ->appendFile('/js/global_layout.js')
                                    ->appendFile('/js/x.js')
                                    ->appendFile('/js/registro/ed_materia.js')
                                    ->appendFile('/js/registro/materia.js');
        ?>
    </head>
    <body>
         <table class="layout">
                <tr><td id="layout_header"></td></tr>
                <tr><td id="layout_menu"></td></tr>
                <tr><td id="layout_content"></td></tr>
                <tr><td id="layout_footer"></td></tr>
         </table>
    </body>
    <script type="text/javascript">
        Ext.onReady(function(){
            <?php \X\Menu::Generar(); ?>
        });
    </script>
    <script type="text/javascript">
        Ext.onReady(function()
        {
           try{
                X.load('storeMaterias', <?php echo X\Msg::Escape($this->materias); ?>);
            }
            catch(e){
                X.msg.failure(e.message);
            }
        });
    </script>
</html>